/*
============================================================================
 Name        : C$(Basename)Document from $(Basename)Document.h
 Author      : $(Author)
 Version     :
 Copyright   : $(Copyright)
 Description : C$(Basename)Document implementation
============================================================================
*/

// INCLUDE FILES
#include "$(Basename)Document.h"
#include "$(Basename)Appui.h"

// ================= MEMBER FUNCTIONS =======================

// constructor
C$(Basename)Document::C$(Basename)Document(CEikApplication& aApp)
: CAknDocument(aApp)
	{
	}

// destructor
C$(Basename)Document::~C$(Basename)Document()
	{
	}

// EPOC default constructor can leave.
void C$(Basename)Document::ConstructL()
	{
	}

// Two-phased constructor.
C$(Basename)Document* C$(Basename)Document::NewL(
		CEikApplication& aApp) // C$(Basename)App reference
	{
	C$(Basename)Document* self = new (ELeave) C$(Basename)Document( aApp );
	CleanupStack::PushL( self );
	self->ConstructL();
	CleanupStack::Pop();

	return self;
	}
	
// ----------------------------------------------------
// C$(Basename)Document::CreateAppUiL()
// constructs C$(Basename)AppUi
// ----------------------------------------------------
//
CEikAppUi* C$(Basename)Document::CreateAppUiL()
	{
	return new (ELeave) C$(Basename)AppUi;
	}
